package com.niuquan.activitie;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;

import com.niuquan.adapter.XunniuResultAdapter;
import com.niuquan.modal.ResultList;

import java.util.ArrayList;

/**
 * Created by DELL on 2015/5/24.
 */
public class XunniuResultActivity extends Activity {
    @Override
    protected void onStart() {
        super.onStart();
    }
    private ArrayList<ResultList> result;
    ListView listview;
    XunniuResultAdapter xunniuResultAdapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tuijianitem);
        listview = (ListView)findViewById(R.id.xunniujieguolist);
        result = new ArrayList<ResultList>();
        xunniuResultAdapter = new XunniuResultAdapter(getApplicationContext(),result);
        listview.setAdapter(xunniuResultAdapter);
        listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                
            }
        });
    }
}
